package com.gxcc3.ygps.common.core.domain.entity;

import com.gxcc3.ygps.common.core.domain.BaseEntity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.Date;

public class SysIotStorage extends BaseEntity {

    /**
     * 主键
     */
    private Long id;

    /**
     * 企业id
     */
    private String companyId;

    /**
     * 冷库名
     */
    private String storageName;

    /**
     * 冷库类型
     */
    private String storageType;

    /**
     * 冷库负责人
     */
    private String contractPeople;

    /**
     * 冷库负责人联系方式
     */
    private String contractPhone;

    /**
     * knd设备号
     */
    private String deviceNumber;

    /**
     * 当前温度
     */
    private String temp;

    /**
     * 当前湿度
     */
    private String hum;

    /**
     * 温湿度最后更新时间
     */
    private Date dateTime;

    /**
     * 上报时模拟的唯一设备号
     */
    private String reportTempDeviceNo;

    /**
     * 上报状态
     */
    private String reportStatus;

    /**
     * 删除标志
     */
    private String delFlag;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }


    @NotBlank(message = "冷库名称不能为空")
    @Size(min = 2, max = 32, message = "冷库名称长度必须介于 2 和 32 之间")
    public String getStorageName() {
        return storageName;
    }

    public void setStorageName(String storageName) {
        this.storageName = storageName;
    }


    @NotBlank(message = "冷库类型不能为空")
    public String getStorageType() {
        return storageType;
    }

    public void setStorageType(String storageType) {
        this.storageType = storageType;
    }

    public String getContractPeople() {
        return contractPeople;
    }

    public void setContractPeople(String contractPeople) {
        this.contractPeople = contractPeople;
    }

    public String getContractPhone() {
        return contractPhone;
    }

    public void setContractPhone(String contractPhone) {
        this.contractPhone = contractPhone;
    }

    public String getDeviceNumber() {
        return deviceNumber;
    }

    public void setDeviceNumber(String deviceNumber) {
        this.deviceNumber = deviceNumber;
    }

    public String getTemp() {
        return temp;
    }

    public void setTemp(String temp) {
        this.temp = temp;
    }

    public String getHum() {
        return hum;
    }

    public void setHum(String hum) {
        this.hum = hum;
    }

    public Date getDateTime() {
        return dateTime;
    }

    public void setDateTime(Date dateTime) {
        this.dateTime = dateTime;
    }

    public String getReportTempDeviceNo() {
        return reportTempDeviceNo;
    }

    public void setReportTempDeviceNo(String reportTempDeviceNo) {
        this.reportTempDeviceNo = reportTempDeviceNo;
    }

    public String getReportStatus() {
        return reportStatus;
    }

    public void setReportStatus(String reportStatus) {
        this.reportStatus = reportStatus;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    public String toString() {
        return "SysIotStorage{" +
                "id=" + id +
                ", companyId='" + companyId + '\'' +
                ", storageName='" + storageName + '\'' +
                ", storageType='" + storageType + '\'' +
                ", contractPeople='" + contractPeople + '\'' +
                ", contractPhone='" + contractPhone + '\'' +
                ", deviceNumber='" + deviceNumber + '\'' +
                ", temp='" + temp + '\'' +
                ", hum='" + hum + '\'' +
                ", dateTime=" + dateTime +
                ", reportTempDeviceNo='" + reportTempDeviceNo + '\'' +
                ", reportStatus='" + reportStatus + '\'' +
                ", delFlag='" + delFlag + '\'' +
                '}';
    }
}
